-- GENERATED SPELL FOR [Ravishing Betrayer] --


function spell0_32394(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(32202,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32394', 687, 1)
end

function spell1_32394(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(24616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32394', 525, 1)
end

function Sorts_32394(pUnit, Event)
local choix_sorts_32394 = math.random(0, 1)
if choix_sorts_32394 == 0 then
pUnit:RegisterEvent('spell0_32394', 1, 1)
end
if choix_sorts_32394 == 1 then
pUnit:RegisterEvent('spell1_32394', 1, 1)
end
end

function mob32394_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32394', math.random(1500, 3000), 1)
end

function mob32394_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32394_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32394_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32394, 1, 'mob32394_Action')
RegisterUnitEvent(32394, 2, 'mob32394_Leave')
RegisterUnitEvent(32394, 3, 'mob32394_Kill')
RegisterUnitEvent(32394, 4, 'mob32394_Die')
